package com.service.bean.other;

public class Moniter {
	public String ctrlUser;
	public String cmdType;

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof Moniter)) {
			return false;
		}
		Moniter moniter = (Moniter) obj;
		if (moniter.ctrlUser.equals(this.ctrlUser) && moniter.cmdType.equals(this.cmdType)) {
			return true;
		} else {
			return false;
		}
	}

	@Override
	public int hashCode() {
		int result = 17;
		result = 37 * result + objectHashCode(ctrlUser);
		result = 37 * result + objectHashCode(cmdType);
		return result;
	}

	int objectHashCode(Object obj) {
		if (obj == null) {
			return 0;
		}
		return obj.hashCode();
	}

}
